<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="author" content="{$WebName}">
<meta name="keywords" content="{$Keywords}">
<meta name="description" content="{$Description}">
<link href="{$WebIcon}" type="image/x-icon" rel="icon">
<link href="{$WebIcon}" type="image/x-icon" rel="shortcut icon">
<link href="{$Css}style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="{$WebPublic}jquery/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="{$Js}common.js"></script>
<script type="text/javascript" src="{$WebPublic}jquery/jquery.SuperSlide.js"></script>
<!--[if lte IE 6]>
<script type="text/javascript" src="{$Js}minmax.js"></script>
<script type="text/javascript" src="{$Js}pngfix.js"></script>
<script language="javascript" type="text/javascript">EvPNG.fix("#logo img");</script>
<![endif]-->
{$AsyncStat}
<script>
	$(document).ready(function(e) {
		pageInit();
		function pageInit(){
			if( $("#top_1").length > 0 ){
				if( "{$EnableHtml}" == 1 ){
					$.get("{:JsonUrl()}", null, function(data){ UpdateLoginStatus(data['MemberID'], data['MemberName'], data['EnableMember']); },"json");
				}else{
					UpdateLoginStatus("{$MemberID}", "{$MemberName}", "{$EnableMember}");
				}
			}
		}
		function UpdateLoginStatus(id, name, flag){
			if(flag==0) return;
			var html = "";
			if( id ){
				html += '<span class="MemberName">'+name+'&nbsp;</span>';
				html += '<a href="{:MemberUrl()}" target="_blank">[{$Think.lang.MemberCenter}]&nbsp;</a>';
				html += '<a href="{:MemberLogoutUrl()}" target="_self">[{$Think.lang.MemberQuit}]</a>';
			}else{
				html += '<a href="{:MemberLoginUrl()}" target="_self">[{$Think.lang.Login}]&nbsp;</a>';
				html += '<a href="{:MemberRegUrl()}" target="_self">[{$Think.lang.Reg}]&nbsp;</a>';
			}
			$("#top_1").html( html );
		}
	});
</script>